#
# cmake cross compile toolchain file for eldk-powerpc toolchain
#   by kaikuo ZHUO, 2014.12.15
#
#the name of the target OS
set(CMAKE_SYSTEM_NAME Linux)

set(CMAKE_SYSTEM_PROCESSOR powerpc)

# set cross compile exe file
set(CMAKE_C_COMPILER /opt/eldk-5.5.2/powerpc/sysroots/i686-eldk-linux/usr/bin/powerpc-linux/powerpc-linux-gcc)
set(CMAKE_CXX_COMPILER /opt/eldk-5.5.2/powerpc/sysroots/i686-eldk-linux/usr/bin/powerpc-linux/powerpc-linux-g++)

# set cross compile root dir
set(CMAKE_FIND_ROOT_PATH /opt/eldk-5.5.2/powerpc/sysroots/i686-eldk-linux /opt/eldk-5.5.2/powerpc/sysroots/powerpc-linux)

# set cross compile root path mode
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)

set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

#   see Module/Linux-GNU-C-powerpc.cmake